package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/1 0001.
 */

public class LoginPhoneRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "login/accountChoice";


    private String username;
    private String token;





    public LoginPhoneRequestParams() {
    }

    public LoginPhoneRequestParams(String user_name, String password) {
        this.username = user_name;
        this.token = password;
    }



    @Override
    public String getServiceString() {
        return SERVICE;
    }





    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);

        dest.writeString(this.username);
        dest.writeString(this.token);


    }

    protected LoginPhoneRequestParams(Parcel in) {
        super(in);
        this.username = in.readString();
        this.token = in.readString();


    }

    public static final Creator<LoginPhoneRequestParams> CREATOR = new Creator<LoginPhoneRequestParams>() {
        @Override
        public LoginPhoneRequestParams createFromParcel(Parcel source) {
            return new LoginPhoneRequestParams(source);
        }

        @Override
        public LoginPhoneRequestParams[] newArray(int size) {
            return new LoginPhoneRequestParams[size];
        }
    };
}
